package com.googlecode.wannabet.oauth.events {
	
	import flash.events.Event;
	
	public class OAuthEvent extends Event {
		
		private var _data:* = null;
		
		public static const COMPLETE:String = 'complete';
		
		public static const ERROR:String = 'error';
		
		public var errorID:int;
		
		public var errorText:String;
		
		public function OAuthEvent(type:String, data:* = null, bubbles:Boolean=false, cancelable:Boolean=false) {
			super(type, bubbles, cancelable);
			this._data = data;
		}
		
		public function get data():* {
			return this._data;
		}

	}
}
